#include <iostream>
#include <chrono>
#include <thread>

#include "boost/asio/io_context.hpp"
#include "boost/asio/steady_timer.hpp"


void print(boost::system::error_code ec){
    std::cout<<"("<<std::this_thread::get_id()<<")"<<std::endl;
}

int main(int argc, char** argv){
    std::cout<<std::this_thread::get_id()<<std::endl;
    boost::asio::io_context io_context;
    boost::asio::steady_timer timer1(io_context, std::chrono::seconds(3));
    boost::asio::steady_timer timer2(io_context, std::chrono::seconds(3));

    timer1.async_wait(&print);
    timer2.async_wait(&print);
    io_context.run();
    return 0;
}
